package com.bk.mapper.balance;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import com.bk.entity.AccountBalance;
import com.bk.entity.TranFlowInfo;

@Component/**@author czl*/
public interface BalanceMapper {

	/**查询账户余额*/
	AccountBalance queryBalanceByAccountId(@Param("cardId") String cardId);

	/**通过账户进行存取款*/
	int saveOrGetBalanceByCardId(AccountBalance accountBalance);

	/**记录流水信息
	 * @return */
	int writeTranFlowInfo(TranFlowInfo tranInfo);

	/**根据账户删除卡上余额*/
	public int deleteBalanceByCardId(String cardId);
}
